package com.jqr.activity.basicstatedemo

import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier

@Composable
fun WaterScreen(modifier: Modifier=Modifier){
//    WaterCounter(modifier)

    //状态提升
    var  count by rememberSaveable {
        mutableStateOf(0)
    }

    Column {
        StatelessWaterCount(count = count, onIncrement = { count++ })
        TaskScreen()
    }




}